package widget;

import android.app.Activity;
import android.content.Context;
import android.widget.TextView;

public class TextUtil {
    private Activity staticcontext;
    private TextView textview;

    public TextUtil(Activity staticcontext) {
        this.staticcontext = staticcontext;
    }

    public static TextUtil build(Context context) {
        return new TextUtil((Activity) context);
    }

    public TextUtil recv(int id) {
        textview = (TextView) ((Activity) staticcontext).findViewById(id);
        return this;
    }

    public TextUtil setText(String text) {
        textview.setText(text);
        return this;
    }


}
